/**
 ******************************************************************************
 * @author     Chris
 * @since      2024/6/24 23:22
 *
 * @file       pd_spi_sim.h
 * @brief      Header file of SPI simulate driver.
 *
 * @note       This file contains the SPI object declaration.
 *
 * @warning    None.
 ******************************************************************************
 * Change Logs:
 *   Date          Author       Notes
 *   2024/6/24     Chris        the first version
 *
 ******************************************************************************
 */

#ifndef JLC_SKY_SPI_SIM_H
#define JLC_SKY_SPI_SIM_H

#include "pd_spi.h"

// Object properties
typedef struct {
    SPI spi;
} SPISimulate; // extends {@see SPI}

// Object constructor and member function
void SPISimulate_constructor(SPISimulate *this,
                             GPIO *ssel, uint8_t sselSize, GPIO *sclk, GPIO *mosi, GPIO *miso);

#endif // JLC_SKY_SPI_SIM_H
